package cn.java79.springboot.zsb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZGD
 * @date 2022/9/28 12:28
 */
@Data
@NoArgsConstructor
@ToString
@TableName("advtise")
public class Advtise implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title,url;
    private Boolean isvalid;
    private Integer sortorder;
    //缺少8个小时
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    //@JsonFormat(pattern = "yyyy-MM-dd")

    private Date starttime;
    private String imgurl,target;
}
